<template>
  <div class="area-selection-box">
    <div class="selection-title">
      <span>区域计算方案选择</span>
    </div>
    <div class="selection-content">
      <div class="table-box">
        <div class="table-title">
          <!-- <span>比对比选的区域方案</span> -->
          <!-- <span>+添加区域方案</span> -->
        </div>
        <el-table border :data="state.tableData" size="small" @selection-change="handleSelectionChange"
          show-overflow-tooltip>
          <el-table-column type="selection" width="55" />
          <el-table-column prop="schemeName" label="比选方案名称" show-overflow-tooltip />
          <el-table-column prop="intr" label="说明" show-overflow-tooltip />
          <el-table-column label="操作" width="150">
            <template #default>
              <el-button link type="primary" size="small" @click="handleClick">修改</el-button>
              <el-button link type="danger" size="small">删除</el-button>
            </template>
          </el-table-column>
        </el-table>
      </div>
    </div>
  </div>
</template>
<script setup>
import { ref, reactive } from 'vue'
import { schemes } from '@/assets/data/com_data/40501009_info.json'
const efflux = reactive(schemes.floodForecast)
const state = reactive({
  tableData: [
    {
      schemeName: '盘龙区域1',
      intr: '新安江+1维'
    },
    {
      schemeName: '盘龙区域1',
      intr: '新安江+2维'
    }
  ]
})
const current = ref(0)
const arrBtn = reactive(['洪水预报方案', '河道演进方案', '水工程'])
const searchBtn = (index) => {
  current.value = index
}
</script>
<style lang="less" scoped>
.area-selection-box {
  width: 100%;
  height: 100%;
  .selection-title {
    height: 30px;
    margin-left: 20px;
    span {
      color: #5583e6;
      font-size: 16px;
    }
  }
  .selection-content {
    height: 500px;
    .table-box {
      width: 100%;
      height: 100%;
      .table-title {
        display: flex;
        height: 35px;
        justify-content: space-between;
        span:nth-of-type(1) {
          color: black;
          font-size: 16px;
        }
        span:nth-of-type(2) {
          width: 120px;
          height: 25px;
          background: #5583e6;
          border-radius: 10px;
          // display: inline-block;
          display: flex;
          justify-content: center;
          align-items: center;
          color: white;
        }
      }
      :deep(.el-table) {
        width: 100%;
        height: calc(100% - 35px);
      }
    }
    .tabs-box {
      .tabs-title {
        margin: 20px 0 0 20px;
        span:nth-of-type(1) {
          color: black;
          font-size: 16px;
        }
        span:nth-of-type(2) {
          color: #5583e6;
          font-size: 16px;
        }
      }
      .unit-body {
        margin-top: 15px;
        width: 100%;
        height: 100%;
        padding-left: 50px;
        box-sizing: border-box;
        .unit-btn-box {
          .unit-btn-item {
            cursor: pointer;
            display: inline-block;
            height: 30px;
            padding: 0 20px;
            margin-left: 20px;
            line-height: 30px;
            font-size: 13px;
            font-weight: 600;
          }
          .active {
            border-bottom: solid 1px rgba(24, 24, 234, 0.915);
            color: rgba(24, 24, 234, 0.915);
          }
        }
        .unit-container {
          overflow-y: auto;
          height: 300px;
          padding: 20px 0 10px 0;
          box-sizing: border-box;
          .unit-edit-box {
            .unit-row {
              margin-top: 10px;
              height: 30px;
              .unit-row-font {
                color: #868686dc;
                font-size: 12px;
                letter-spacing: 3px;
                display: inline-block;
              }
              .unit-left-mge {
                margin-left: 150px;
              }
              .unit-row-font1 {
                font-size: 12px;
                font-weight: 600;
              }
              .unit-row-font2 {
                font-size: 13px;
                font-weight: 400;
              }
              .unit-search {
                margin-left: 100px;
                font-size: 13px;
                color: blue;
                cursor: pointer;
              }
            }
          }
        }
      }
    }
  }
}
</style>
